<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
    div{
        /* 溢出隐藏 */
        overflow: hidden;
        line-height: 50px;
        font-size: 20px;
        /* 不换行 */
        white-space: nowrap;
        /* 溢出变省略号 */
       text-overflow: ellipsis;
        width: 0;
        height: 50px;
        background-color: pink;
        animation: div 2s  steps(10)  infinite;
    }
    @keyframes div{
        0%{
            width: 0;
            /* height: 50px; */
        }
        100%{
            width: 250px;
            /* height: 50px; */
        }
    }
    </style>
</head>
<body>
    <div>赵玉真天下无敌最帅耶</div>
</body>
</html>